//
//  ZYXUIThreadBlockedViewController.m
//  MultiThreading
//  阻塞UI主线程
//

#import "ZYXUIThreadBlockedViewController.h"

@interface ZYXUIThreadBlockedViewController ()
- (IBAction)btnClick;

@end

@implementation ZYXUIThreadBlockedViewController


- (IBAction)btnClick {
    NSThread *currentThread = [NSThread currentThread];
    
    //在UI线程执行耗时操作 阻塞UI主线程
    for(int i=0;i<50000;i++){
        NSLog(@"%d",i);
    }
    NSLog(@"当前在 %@ 线程执行",currentThread);
}
@end
